package git.soulbgm.pojo;

import javax.persistence.Id;
import javax.persistence.Column;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import git.soulbgm.common.annotation.IdBuild;
import git.soulbgm.common.enumerate.IdType;

/**
 * user
 *
 * @author SoulBGM
 * @version V1.0
 * @date 2019-11-25 11:23:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "user")
public class User {

    /**
     * id
     */
    @Id
    @IdBuild(IdType.JDBC)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * username
     */
    @ApiModelProperty("username")
    private String username;

    /**
     * password
     */
    @ApiModelProperty("password")
    private String password;

    /**
     * age
     */
    @ApiModelProperty("age")
    private Integer age;

    /**
     * address
     */
    @ApiModelProperty("address")
    private String address;

    /**
     * mail
     */
    @ApiModelProperty("mail")
    private String mail;


}